<template>
  <div class="cart">
    <h1>This is an cart page {{id}}</h1>
  </div>
</template>
<script>
	export default {
		name:'cart',
		props:{//组件属性
			id:{
				type:String,
				default:''
			}
		},
		mounted(){
			
		},
		beforeRoutEnter(to,from,next){
			console.log('beforeRoutEnter...');
			next();
		},
		beforeRouteUpdate(to,from,next){
			console.log('beforeRouteUpdate');
			next();
		},
		beforeRouteLeave(to,from,next){
			console.log('beforeRouteLeave');
			next();
		}

	}
</script>
